#ifndef QUANLYDAILY_H
#define QUANLYDAILY_H

#include <QMainWindow>
#include "ui_quanlydaily.h"
#include "ketnoidb.h"
#include "qsqlquery.h"
#include "qsqlquerymodel.h"

namespace Ui {
    class QuanLyDaiLy;
}

class QuanLyDaiLy : public QMainWindow
{
    Q_OBJECT

public:
    explicit QuanLyDaiLy(QWidget *parent = 0);
    ~QuanLyDaiLy();
    QSqlQuery query;
        QSqlQueryModel *qModel;
          QSqlQueryModel  data;
        //ketnoiDB  thaotac;
         ketnoiDB *thaotac;
        int maDaiLy;




private slots:

    void fLoadComboBox();
    void fGetTableView();
    void select(QItemSelection);
    void fSetText();
    void fSetEnabled();
    void fKey(bool key);
    void fInsert();
    void fDelete();
    void fThoat();
    bool fCheckCondition();
    void actionTT();
    void actionHD();
    void actionMH();
    void actionPT();
    void actionDT();
    void actionTim();



private:
    Ui::QuanLyDaiLy *ui;
    //QSqlQueryModel *  data;


};

#endif // QUANLYDAILY_H
